const originOffset = {
  left: -0.5,
  top: -0.5,
  center: 0,
  bottom: 0.5,
  right: 0.5,
};


export const resolveOrigin = (originValue) => typeof originValue === 'string' ? originOffset[originValue] : originValue - 0.5;
